<template>
	<div></div>
</template>

<script>
	export default {
		computed: {
			routerPath() {
				return this.$route.params.routerPath/*|| "home"*/;
			},
			routerName() {
				return this.$route.params.routerName/*|| "home"*/;
			},
			
		},
		created() {
			let query = {env: "edit"};
			if(this.routerPath){
				this.$router.push({path: this.routerPath, query});
			}else if(this.routerName){
				this.$router.push({name: this.routerName, query});
			}else{
				console.log("返回")
				// location.history.go(-1);
				window.history.back()
			}
		},
		// beforeRouteEnter (to, from, next) {
        //   next();
        // },
	}
</script>

<style>
</style>